package top.xia17.plugins.fast.base.cors;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 跨域配置
 * @author xia17
 * @since 2022/2/24 17:04
 */
@ConfigurationProperties(prefix = "xia17fast.cors")
@Data
public class CorsProperties {


    /** 是否开启跨域 */
    private Boolean enabled = true;

    /** 可跨域的网点，默认允许所有 */
    private String origins = "*";

}
